#include<stdio.h>
#include<string.h>

void stract_my(char* ph,char* hi,int n,int m)
{
	//char temp;
	int p=m;
	while(p-1<n)
	{
		*(ph+m-1)=*hi;
		ph++;
		hi++;
		p++;
    }
}
int main()
{
	int n,m;
	char ch[10000],arr[10000]="hello world!";
	
	printf("enter a series of words:\n");
	gets(ch);
	//fgets(ch,strlen(ch),stdin);
	printf("enter some numbers\n");
	scanf("%d%d",&n,&m);
		
	char* p=&ch[m-1];
//	char* prr=arr;
	stract_my(ch,arr,n,m);
	printf("%s",ch);
	
}